package org.example.mall.admin.model.dto.manage;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.example.mall.admin.model.entity.manage.Account;

import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * @author hzq
 * @date 2022/1/2 1:34
 */
@Data
public class AccountDto extends Account {

    @NotEmpty(message = "角色列表不能空")
    @ApiModelProperty(value = "角色列表")
    private List<Integer> roles;
}
